Skip to main content

ListEndsWithList

Type​

operator

Summary​

Determines whether Source ends with Suffix Prefix:An expression which evaluates to a list.

Syntax​

<Source> ends with <Suffix>

Description​

Source ends with Suffix if and only if the elements of Suffix occur as a final subsequence of the elements of Source.

note

Since the empty list is a final subsequence of every list, every list ends with the empty list.

Parameters​

NameTypeDescription

Source

An expression which evaluates to a list.

Examples​

variable tVar as List
put [1, 2, 3, 4, 5] into tVar

variable tEnds as Boolean
// put tList ends with tList[5] into tEnds -- error: tList[5] is not a list

put tList ends with element 1 to 5 of tList into tEnds -- tEnds is true

Value​

NameTypeDescription

return

Returns true if Source ends with Suffix.

Thank you for your feedback!

Was this page helpful?